;--------------------------------------
;
; msStat.asm
;
; Gets current status of the mouse
;  
;

;--------------------------------------
;
; include all defines, macros, 
; prototypes and set up memory model
;

include tab6.inc

;--------------------------------------
;
; Declare Code segment
;

        .CODE

msStat  PROC PASCAL PUBLIC USES DS BX, x_loc:PWORD, y_loc:PWORD
        mov     ax,3
        int     33h
        mov     ax,bx
IF	mdl eq 3
        lds     bx,x_loc
        mov     ds:[bx],cx
        lds     bx,y_loc
        mov     ds:[bx],dx
ELSE
        mov     bx,x_loc
        mov     Word Ptr [bx],cx
        mov     bx,y_loc
        mov     Word Ptr [bx],dx
ENDIF
        mov     return_value,ax
        ret
msStat  ENDP

        END

;
;--------------------------------------
